import { http } from '@/utils/http'
import { Recommend } from '@/types/recommend'

/**
 * 获取推荐页面数据
 */
export const getRecommend = ({
  url,
  subType = '',
  page = 1,
  pageSize = 10
}: {
  url: string
  subType?: string
  page?: number
  pageSize?: number
}) => {
  return http<Recommend>({
    url,
    data: {
      subType,
      page,
      pageSize
    }
  })
}
